// package.json里面unplugin-auto-import和unplugin-vue-components是为了自动导入
import {createApp, ref} from 'vue'
import './style.css'
import App from './App.vue'
import "./styles/dark.scss";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import Header from './components/Header.vue';
// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import QrcodeVue from 'qrcode.vue'
import router from './router'

const app = createApp(App);
app.provide('imgPrefix', 'https://gold-zongzi-movie.oss-cn-beijing.aliyuncs.com/');
app.use(router);
// element-plus全局默认的ui属性值
app.use(ElementPlus, {size: 'small', zIndex: 3000});

// 注册element-plus的图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.component('Header', Header);
app.component('qrcode-vue', QrcodeVue);

// 结束
app.mount("#app");
